function submitUserNotificationForm () {
    document.getElementById("userNotificationFormStatusMessage").setAttribute("class", "formProcessingRequestMessage");
    document.getElementById("userNotificationFormStatusMessage").setAttribute("className", "formProcessingRequestMessage");
    dojo.byId("userNotificationFormStatusMessage").innerHTML = "<table border='0' cellpadding='0' cellspacing='0' style='margin-left:auto;margin-right:auto;'><tr><td style='padding-right:3px;'><img src='images/smallLoader.gif' /></td><td style='font-family:Verdana;font-size:12px;font-weight:bold;'>Registrando Correo Electronico ...</td></tr></table>";

    if (!dijit.byId("email").isValid()) {
        dijit.byId("email").focus();
        
        document.getElementById("userNotificationFormStatusMessage").setAttribute("class", "formErrorMessage");
        document.getElementById("userNotificationFormStatusMessage").setAttribute("className", "formErrorMessage");
        dojo.byId("userNotificationFormStatusMessage").innerHTML = "Informacion Invalida. Por Favor Revise su Correo Electronico.";
    } else {
        dijit.byId("registerEmailButton").attr("disabled", true);
        //dijit.byId("email").attr("disabled", true);
        dojo.xhrPost({
            url: "ajaxAddEmailToNotificationList.php",
            form: 'userNotificationForm',
            timeoutSeconds: 500000,
            load: function(response, ioArgs) {
                if(response == '1') {
                    //Show Success Message
                    document.getElementById("userNotificationFormStatusMessage").setAttribute("class", "formConfirmationMessage");
                    document.getElementById("userNotificationFormStatusMessage").setAttribute("className", "formConfirmationMessage");
                    dojo.byId("userNotificationFormStatusMessage").innerHTML = "Su Email ha sido agreagado a nuestra lista!";
                    dijit.byId("registerEmailButton").attr("disabled", false);
                    //dijit.byId("email").attr("disabled", false);
                    dijit.byId("email").reset();
                } else {
                    //Show Error Message
                    document.getElementById("userNotificationFormStatusMessage").setAttribute("class", "formErrorMessage");
                    document.getElementById("userNotificationFormStatusMessage").setAttribute("className", "formErrorMessage");
                    dojo.byId("userNotificationFormStatusMessage").innerHTML = "Ha ocurrido un error. Por favor intente mas tarde.";
                    dijit.byId("registerEmailButton").attr("disabled", false);
                    //dijit.byId("email").attr("disabled", false);
                    dijit.byId("email").reset();
                }
                return response;
            },
            error: function(response, ioArgs) {
                document.getElementById("userNotificationFormStatusMessage").setAttribute("class", "formErrorMessage");
                document.getElementById("userNotificationFormStatusMessage").setAttribute("className", "formErrorMessage");
                dojo.byId("userNotificationFormStatusMessage").innerHTML = "Ha ocurrido un error. Por favor intente mas tarde.";
                dijit.byId("registerEmailButton").attr("disabled", false);
                //dijit.byId("email").attr("disabled", false);
                dijit.byId("email").reset();
                return response;
            }
        });
    }
}
